defmodule ProgContest.Repo.Migrations.CreateContests do
  use Ecto.Migration

  def change do
    create table(:contests) do
      add :name, :text, null: false
      add :start_at, :timestamptz, null: false
      add :end_at, :timestamptz, null: false

      timestamps(type: :timestamptz)
    end

  end
end
